package com.sjzl.util;

public class Warning {
	
	private String msg;
	
	public Warning(String msg){
		this.msg = msg;
	}
	
	public String toString(){
		
		StringBuffer buffer = new StringBuffer();
		
		buffer.append("<script type='text/javascript'>");
		buffer.append("	art.dialog({");
		buffer.append("	title: '温馨提示',");
		buffer.append("	lock: true,");
		buffer.append("	content: '"+msg+"',");
		buffer.append("	yesFn: function(){}");
		buffer.append("});");
		buffer.append("</script>");
		
		return buffer.toString();
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
	
}
